home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / GCC 1.37.1r15 / Manual / Info / gcc.info-2 < prev    next >
Encoding:
Text File  |  1990-03-14  |  35.8 KB  |  913 lines  |  [TEXT/MPS ]

  1. Info file gcc.info, produced by Makeinfo, -*- Text -*- from input
  2. file gcc.texinfo.
  3.  
  4. This file documents the use and the internals of the GNU compiler.
  5.  
  6. Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  7.  
  8. Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12. Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled ``GNU General Public License'' and
  15. ``Protect Your Freedom--Fight `Look And Feel''' are included exactly
  16. as in the original, and provided that the entire resulting derived
  17. work is distributed under the terms of a permission notice identical
  18. to this one.
  19.  
  20. Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled ``GNU General Public
  23. License'' and ``Protect Your Freedom--Fight `Look And Feel''' and
  24. this permission notice may be included in translations approved by
  25. the Free Software Foundation instead of in the original English.
  26.  
  27.  
  28. 
  29. File: gcc.info,  Node: Options,  Next: Installation,  Prev: Boycott,  Up: Top
  30.  
  31. GNU CC Command Options
  32. **********************
  33.  
  34. The GNU C compiler uses a command syntax much like the Unix C compiler.
  35. The `gcc' program accepts options and file names as operands. 
  36. Multiple single-letter options may *not* be grouped: `-dr' is very
  37. different from `-d -r'.
  38.  
  39. When you invoke GNU CC, it normally does preprocessing, compilation,
  40. assembly and linking.  File names which end in `.c' are taken as C
  41. source to be preprocessed and compiled; file names ending in `.i' are
  42. taken as preprocessor output to be compiled; compiler output files
  43. plus any input files with names ending in `.s' are assembled; then
  44. the resulting object files, plus any other input files, are linked
  45. together to produce an executable.
  46.  
  47. Command options allow you to stop this process at an intermediate
  48. stage.  For example, the `-c' option says not to run the linker. 
  49. Then the output consists of object files output by the assembler.
  50.  
  51. Other command options are passed on to one stage of processing.  Some
  52. options control the preprocessor and others the compiler itself.  Yet
  53. other options control the assembler and linker; these are not
  54. documented here, but you rarely need to use any of them.
  55.  
  56. Here are the options to control the overall compilation process,
  57. including those that say whether to link, whether to assemble, and so
  58. on.
  59.  
  60. `-o FILE'
  61.      Place output in file FILE.  This applies regardless to whatever
  62.      sort of output is being produced, whether it be an executable
  63.      file, an object file, an assembler file or preprocessed C code.
  64.  
  65.      If `-o' is not specified, the default is to put an executable
  66.      file in `a.out', the object file `SOURCE.c' in `SOURCE.o', an
  67.      assembler file in `SOURCE.s', and preprocessed C on standard
  68.      output.
  69.  
  70. `-c'
  71.      Compile or assemble the source files, but do not link.  Produce
  72.      object files with names made by replacing `.c' or `.s' with `.o'
  73.      at the end of the input file names.  Do nothing at all for
  74.      object files specified as input.
  75.  
  76. `-S'
  77.      Compile into assembler code but do not assemble.  The assembler
  78.      output file name is made by replacing `.c' with `.s' at the end
  79.      of the input file name.  Do nothing at all for assembler source
  80.      files or object files specified as input.
  81.  
  82. `-E'
  83.      Run only the C preprocessor.  Preprocess all the C source files
  84.      specified and output the results to standard output.
  85.  
  86. `-v'
  87.      Compiler driver program prints the commands it executes as it
  88.      runs the preprocessor, compiler proper, assembler and linker. 
  89.      Some of these are directed to print their own version numbers.
  90.  
  91. `-pipe'
  92.      Use pipes rather than temporary files for communication between
  93.      the various stages of compilation.  This fails to work on some
  94.      systems where the assembler is unable to read from a pipe; but
  95.      the GNU assembler has no trouble.
  96.  
  97. `-BPREFIX'
  98.      Compiler driver program tries PREFIX as a prefix for each
  99.      program it tries to run.  These programs are `cpp', `cc1', `as'
  100.      and `ld'.
  101.  
  102.      For each subprogram to be run, the compiler driver first tries
  103.      the `-B' prefix, if any.  If that name is not found, or if `-B'
  104.      was not specified, the driver tries two standard prefixes, which
  105.      are `/usr/lib/gcc-' and `/usr/local/lib/gcc-'.  If neither of
  106.      those results in a file name that is found, the unmodified
  107.      program name is searched for using the directories specified in
  108.      your `PATH' environment variable.
  109.  
  110.      The run-time support file `gnulib' is also searched for using
  111.      the `-B' prefix, if needed.  If it is not found there, the two
  112.      standard prefixes above are tried, and that is all.  The file is
  113.      left out of the link if it is not found by those means.  Most of
  114.      the time, on most machines, you can do without it.
  115.  
  116.      You can get a similar result from the environment variable;
  117.      `GCC_EXEC_PREFIX' if it is defined, its value is used as a
  118.      prefix in the same way.  If both the `-B' option and the
  119.      `GCC_EXEC_PREFIX' variable are present, the `-B' option is used
  120.      first and the environment variable value second.
  121.  
  122. `-bPREFIX'
  123.      The argument PREFIX is used as a second prefix for the compiler
  124.      executables and libraries.  This prefix is optional: the
  125.      compiler tries each file first with it, then without it.  This
  126.      prefix follows the prefix specified with `-B' or the default
  127.      prefixes.
  128.  
  129.      Thus, `-bvax- -Bcc/' in the presence of environment variable
  130.      `GCC_EXEC_PREFIX' with definition `/u/foo/' causes GNU CC to try
  131.      the following file names for the preprocessor executable:
  132.  
  133.           cc/vax-cpp
  134.           cc/cpp
  135.           /u/foo/vax-cpp
  136.           /u/foo/cpp
  137.           /usr/local/lib/gcc-vax-cpp
  138.           /usr/local/lib/gcc-cpp
  139.           /usr/lib/gcc-vax-cpp
  140.           /usr/lib/gcc-cpp
  141.  
  142. These options control the details of C compilation itself.
  143.  
  144. `-ansi'
  145.      Support all ANSI standard C programs.
  146.  
  147.      This turns off certain features of GNU C that are incompatible
  148.      with ANSI C, such as the `asm', `inline' and `typeof' keywords,
  149.      and predefined macros such as `unix' and `vax' that identify the
  150.      type of system you are using.  It also enables the undesirable
  151.      and rarely used ANSI trigraph feature.
  152.  
  153.      The alternate keywords `__asm__', `__inline__' and `__typeof__'
  154.      continue to work despite `-ansi'.  You would not want to use
  155.      them in an ANSI C program, of course, but it useful to put them
  156.      in header files that might be included in compilations done with
  157.      `-ansi'.  Alternate predefined macros such as `__unix__' and
  158.      `__vax__' are also available, with or without `-ansi'.
  159.  
  160.      The `-ansi' option does not cause non-ANSI programs to be
  161.      rejected gratuitously.  For that, `-pedantic' is required in
  162.      addition to `-ansi'.
  163.  
  164.      The macro `__STRICT_ANSI__' is predefined when the `-ansi'
  165.      option is used.  Some header files may notice this macro and
  166.      refrain from declaring certain functions or defining certain
  167.      macros that the ANSI standard doesn't call for; this is to avoid
  168.      interfering with any programs that might use these names for
  169.      other things.
  170.  
  171. `-traditional'
  172.      Attempt to support some aspects of traditional C compilers. 
  173.      Specifically:
  174.  
  175.         * All `extern' declarations take effect globally even if they
  176.           are written inside of a function definition.  This includes
  177.           implicit declarations of functions.
  178.  
  179.         * The keywords `typeof', `inline', `signed', `const' and
  180.           `volatile' are not recognized.
  181.  
  182.         * Comparisons between pointers and integers are always allowed.
  183.  
  184.         * Integer types `unsigned short' and `unsigned char' promote
  185.           to `unsigned int'.
  186.  
  187.         * Out-of-range floating point literals are not an error.
  188.  
  189.         * String ``constants'' are not necessarily constant; they are
  190.           stored in writable space, and identical looking constants
  191.           are allocated separately.
  192.  
  193.         * All automatic variables not declared `register' are
  194.           preserved by `longjmp'.  Ordinarily, GNU C follows ANSI C:
  195.           automatic variables not declared `volatile' may be clobbered.
  196.  
  197.         * In the preprocessor, comments convert to nothing at all,
  198.           rather than to a space.  This allows traditional token
  199.           concatenation.
  200.  
  201.         * In the preprocessor, macro arguments are recognized within
  202.           string constants in a macro definition (and their values
  203.           are stringified, though without additional quote marks,
  204.           when they appear in such a context).  The preprocessor
  205.           always considers a string constant to end at a newline.
  206.  
  207.         * The predefined macro `__STDC__' is not defined when you use
  208.           `-traditional', but `__GNUC__' is (since the GNU extensions
  209.           which `__GNUC__' indicates are not affected by
  210.           `-traditional').  If you need to write header files that
  211.           work differently depending on whether `-traditional' is in
  212.           use, by testing both of these predefined macros you can
  213.           distinguish four situations: GNU C, traditional GNU C,
  214.           other ANSI C compilers, and other old C compilers.
  215.  
  216. `-O'
  217.      Optimize.  Optimizing compilation takes somewhat more time, and
  218.      a lot more memory for a large function.
  219.  
  220.      Without `-O', the compiler's goal is to reduce the cost of
  221.      compilation and to make debugging produce the expected results. 
  222.      Statements are independent: if you stop the program with a
  223.      breakpoint between statements, you can then assign a new value
  224.      to any variable or change the program counter to any other
  225.      statement in the function and get exactly the results you would
  226.      expect from the source code.
  227.  
  228.      Without `-O', only variables declared `register' are allocated
  229.      in registers.  The resulting compiled code is a little worse
  230.      than produced by PCC without `-O'.
  231.  
  232.      With `-O', the compiler tries to reduce code size and execution
  233.      time.
  234.  
  235.      Some of the `-f' options described below turn specific kinds of
  236.      optimization on or off.
  237.  
  238. `-g'
  239.      Produce debugging information in the operating system's native
  240.      format (for DBX or SDB).  GDB also can work with this debugging
  241.      information.
  242.  
  243.      Unlike most other C compilers, GNU CC allows you to use `-g'
  244.      with `-O'.  The shortcuts taken by optimized code may
  245.      occasionally produce surprising results: some variables you
  246.      declared may not exist at all; flow of control may briefly move
  247.      where you did not expect it; some statements may not be executed
  248.      because they compute constant results or their values were
  249.      already at hand; some statements may execute in different places
  250.      because they were moved out of loops.  Nevertheless it proves
  251.      possible to debug optimized output.  This makes it reasonable to
  252.      use the optimizer for programs that might have bugs.
  253.  
  254. `-gg'
  255.      Produce debugging information in the old GDB format.  This is
  256.      obsolete.
  257.  
  258. `-w'
  259.      Inhibit all warning messages.
  260.  
  261. `-W'
  262.      Print extra warning messages for these events:
  263.  
  264.         * An automatic variable is used without first being
  265.           initialized.
  266.  
  267.           These warnings are possible only in optimizing compilation,
  268.           because they require data flow information that is computed
  269.           only when optimizing.  If you don't specify `-O', you
  270.           simply won't get these warnings.
  271.  
  272.           These warnings occur only for variables that are candidates
  273.           for register allocation.  Therefore, they do not occur for
  274.           a variable that is declared `volatile', or whose address is
  275.           taken, or whose size is other than 1, 2, 4 or 8 bytes. 
  276.           Also, they do not occur for structures, unions or arrays,
  277.           even when they are in registers.
  278.  
  279.           Note that there may be no warning about a variable that is
  280.           used only to compute a value that itself is never used,
  281.           because such computations may be deleted by data flow
  282.           analysis before the warnings are printed.
  283.  
  284.           These warnings are made optional because GNU CC is not
  285.           smart enough to see all the reasons why the code might be
  286.           correct despite appearing to have an error.  Here is one
  287.           example of how this can happen:
  288.  
  289.                {
  290.                  int x;
  291.                  switch (y)
  292.                    {
  293.                    case 1: x = 1;
  294.                      break;
  295.                    case 2: x = 4;
  296.                      break;
  297.                    case 3: x = 5;
  298.                    }
  299.                  foo (x);
  300.                }
  301.  
  302.           If the value of `y' is always 1, 2 or 3, then `x' is always
  303.           initialized, but GNU CC doesn't know this.  Here is another
  304.           common case:
  305.  
  306.                {
  307.                  int save_y;
  308.                  if (change_y) save_y = y, y = new_y;
  309.                  ...
  310.                  if (change_y) y = save_y;
  311.                }
  312.  
  313.           This has no bug because `save_y' is used only if it is set.
  314.  
  315.           Some spurious warnings can be avoided if you declare as
  316.           `volatile' all the functions you use that never return. 
  317.           *Note Function Attributes::.
  318.  
  319.         * A nonvolatile automatic variable might be changed by a call
  320.           to `longjmp'.  These warnings as well are possible only in
  321.           optimizing compilation.
  322.  
  323.           The compiler sees only the calls to `setjmp'.  It cannot
  324.           know where `longjmp' will be called; in fact, a signal
  325.           handler could call it at any point in the code.  As a
  326.           result, you may get a warning even when there is in fact no
  327.           problem because `longjmp' cannot in fact be called at the
  328.           place which would cause a problem.
  329.  
  330.         * A function can return either with or without a value. 
  331.           (Falling off the end of the function body is considered
  332.           returning without a value.)  For example, this function
  333.           would evoke such a warning:
  334.  
  335.                foo (a)
  336.                {
  337.                  if (a > 0)
  338.                    return a;
  339.                }
  340.  
  341.           Spurious warnings can occur because GNU CC does not realize
  342.           that certain functions (including `abort' and `longjmp')
  343.           will never return.
  344.  
  345.         * An expression-statement contains no side effects.
  346.  
  347.      In the future, other useful warnings may also be enabled by this
  348.      option.
  349.  
  350. `-Wimplicit'
  351.      Warn whenever a function is implicitly declared.
  352.  
  353. `-Wreturn-type'
  354.      Warn whenever a function is defined with a return-type that
  355.      defaults to `int'.  Also warn about any `return' statement with
  356.      no return-value in a function whose return-type is not `void'.
  357.  
  358. `-Wunused'
  359.      Warn whenever a local variable is unused aside from its
  360.      declaration, whenever a function is declared static but never
  361.      defined, and whenever a statement computes a result that is
  362.      explicitly not used.
  363.  
  364. `-Wswitch'
  365.      Warn whenever a `switch' statement has an index of enumeral type
  366.      and lacks a `case' for one or more of the named codes of that
  367.      enumeration.  (The presence of a `default' label prevents this
  368.      warning.)  `case' labels outside the enumeration range also
  369.      provoke warnings when this option is used.
  370.  
  371. `-Wcomment'
  372.      Warn whenever a comment-start sequence `/*' appears in a comment.
  373.  
  374. `-Wtrigraphs'
  375.      Warn if any trigraphs are encountered (assuming they are enabled).
  376.  
  377. `-Wall'
  378.      All of the above `-W' options combined.  These are all the
  379.      options which pertain to usage that we recommend avoiding and
  380.      that we believe is easy to avoid, even in conjunction with macros.
  381.  
  382.      The other `-W...' options below are not implied by `-Wall'
  383.      because certain kinds of useful macros are almost impossible to
  384.      write without causing those warnings.
  385.  
  386. `-Wshadow'
  387.      Warn whenever a local variable shadows another local variable.
  388.  
  389. `-Wid-clash-LEN'
  390.      Warn whenever two distinct identifiers match in the first LEN
  391.      characters.  This may help you prepare a program that will
  392.      compile with certain obsolete, brain-damaged compilers.
  393.  
  394. `-Wpointer-arith'
  395.      Warn about anything that depends on the ``size of'' a function
  396.      type or of `void'.  GNU C assigns these types a size of 1, for
  397.      convenience in calculations with `void *' pointers and pointers
  398.      to functions.
  399.  
  400. `-Wcast-qual'
  401.      Warn whenever a pointer is cast so as to remove a type qualifier
  402.      from the target type.  For example, warn if a `const char *' is
  403.      cast to an ordinary `char *'.
  404.  
  405. `-Wwrite-strings'
  406.      Give string constants the type `const char[LENGTH]' so that
  407.      copying the address of one into a non-`const' `char *' pointer
  408.      will get a warning.  These warnings will help you find at
  409.      compile time code that can try to write into a string constant,
  410.      but only if you have been very careful about using `const' in
  411.      declarations and prototypes.  Otherwise, it will just be a
  412.      nuisance; this is why we did not make `-Wall' request these
  413.      warnings.
  414.  
  415. `-p'
  416.      Generate extra code to write profile information suitable for
  417.      the analysis program `prof'.
  418.  
  419. `-pg'
  420.      Generate extra code to write profile information suitable for
  421.      the analysis program `gprof'.
  422.  
  423. `-a'
  424.      Generate extra code to write profile information for basic
  425.      blocks, which will record the number of times each basic block
  426.      is executed.  This data could be analyzed by a program like
  427.      `tcov'.  Note, however, that the format of the data is not what
  428.      `tcov' expects.  Eventually GNU `gprof' should be extended to
  429.      process this data.
  430.  
  431. `-lLIBRARY'
  432.      Search a standard list of directories for a library named
  433.      LIBRARY, which is actually a file named `libLIBRARY.a'.  The
  434.      linker uses this file as if it had been specified precisely by
  435.      name.
  436.  
  437.      The directories searched include several standard system
  438.      directories plus any that you specify with `-L'.
  439.  
  440.      Normally the files found this way are library files--archive
  441.      files whose members are object files.  The linker handles an
  442.      archive file by scanning through it for members which define
  443.      symbols that have so far been referenced but not defined.  But
  444.      if the file that is found is an ordinary object file, it is
  445.      linked in the usual fashion.  The only difference between using
  446.      an `-l' option and specifying a file name is that `-l' searches
  447.      several directories.
  448.  
  449. `-LDIR'
  450.      Add directory DIR to the list of directories to be searched for
  451.      `-l'.
  452.  
  453. `-nostdlib'
  454.      Don't use the standard system libraries and startup files when
  455.      linking.  Only the files you specify will be passed to the linker.
  456.  
  457. `-mMACHINESPEC'
  458.      Machine-dependent option specifying something about the type of
  459.      target machine.  These options are defined by the macro
  460.      `TARGET_SWITCHES' in the machine description.  The default for
  461.      the options is also defined by that macro, which enables you to
  462.      change the defaults.
  463.  
  464.      These are the `-m' options defined in the 68000 machine
  465.      description:
  466.  
  467.     `-m68020'
  468.     `-mc68020'
  469.           Generate output for a 68020 (rather than a 68000).  This is
  470.           the default if you use the unmodified sources.
  471.  
  472.     `-m68000'
  473.     `-mc68000'
  474.           Generate output for a 68000 (rather than a 68020).
  475.  
  476.     `-m68881'
  477.           Generate output containing 68881 instructions for floating
  478.           point.  This is the default if you use the unmodified
  479.           sources.
  480.  
  481.     `-mfpa'
  482.           Generate output containing Sun FPA instructions for
  483.           floating point.
  484.  
  485.     `-msoft-float'
  486.           Generate output containing library calls for floating point.
  487.  
  488.     `-mshort'
  489.           Consider type `int' to be 16 bits wide, like `short int'.
  490.  
  491.     `-mnobitfield'
  492.           Do not use the bit-field instructions.  `-m68000' implies
  493.           `-mnobitfield'.
  494.  
  495.     `-mbitfield'
  496.           Do use the bit-field instructions.  `-m68020' implies
  497.           `-mbitfield'.  This is the default if you use the
  498.           unmodified sources.
  499.  
  500.     `-mrtd'
  501.           Use a different function-calling convention, in which
  502.           functions that take a fixed number of arguments return with
  503.           the `rtd' instruction, which pops their arguments while
  504.           returning.  This saves one instruction in the caller since
  505.           there is no need to pop the arguments there.
  506.  
  507.           This calling convention is incompatible with the one
  508.           normally used on Unix, so you cannot use it if you need to
  509.           call libraries compiled with the Unix compiler.
  510.  
  511.           Also, you must provide function prototypes for all
  512.           functions that take variable numbers of arguments
  513.           (including `printf'); otherwise incorrect code will be
  514.           generated for calls to those functions.
  515.  
  516.           In addition, seriously incorrect code will result if you
  517.           call a function with too many arguments.  (Normally, extra
  518.           arguments are harmlessly ignored.)
  519.  
  520.           The `rtd' instruction is supported by the 68010 and 68020
  521.           processors, but not by the 68000.
  522.  
  523.      These `-m' options are defined in the Vax machine description:
  524.  
  525.     `-munix'
  526.           Do not output certain jump instructions (`aobleq' and so
  527.           on) that the Unix assembler for the Vax cannot handle
  528.           across long ranges.
  529.  
  530.     `-mgnu'
  531.           Do output those jump instructions, on the assumption that
  532.           you will assemble with the GNU assembler.
  533.  
  534.     `-mg'
  535.           Output code for g-format floating point numbers instead of
  536.           d-format.
  537.  
  538.      These `-m' switches are supported on the Sparc:
  539.  
  540.     `-mfpu'
  541.           Generate output containing floating point instructions. 
  542.           This is the default if you use the unmodified sources.
  543.  
  544.     `-mno-epilogue'
  545.           Generate separate return instructions for `return'
  546.           statements.  This has both advantages and disadvantages; I
  547.           don't recall what they are.
  548.  
  549.      These `-m' options are defined in the Convex machine description:
  550.  
  551.     `-mc1'
  552.           Generate output for a C1.  This is the default when the
  553.           compiler is configured for a C1.
  554.  
  555.     `-mc2'
  556.           Generate output for a C2.  This is the default when the
  557.           compiler is configured for a C2.
  558.  
  559.     `-margcount'
  560.           Generate code which puts an argument count in the word
  561.           preceding each argument list.  Some nonportable Convex and
  562.           Vax programs need this word.  (Debuggers don't; this info
  563.           is in the symbol table.)
  564.  
  565.     `-mnoargcount'
  566.           Omit the argument count word.  This is the default if you
  567.           use the unmodified sources.
  568.  
  569. `-fFLAG'
  570.      Specify machine-independent flags.  Most flags have both
  571.      positive and negative forms; the negative form of `-ffoo' would
  572.      be `-fno-foo'.  In the table below, only one of the forms is
  573.      listed--the one which is not the default.  You can figure out
  574.      the other form by either removing `no-' or adding it.
  575.  
  576.     `-fpcc-struct-return'
  577.           Use the same convention for returning `struct' and `union'
  578.           values that is used by the usual C compiler on your system.
  579.           This convention is less efficient for small structures, and
  580.           on many machines it fails to be reentrant; but it has the
  581.           advantage of allowing intercallability between GCC-compiled
  582.           code and PCC-compiled code.
  583.  
  584.     `-ffloat-store'
  585.           Do not store floating-point variables in registers.  This
  586.           prevents undesirable excess precision on machines such as
  587.           the 68000 where the floating registers (of the 68881) keep
  588.           more precision than a `double' is supposed to have.
  589.  
  590.           For most programs, the excess precision does only good, but
  591.           a few programs rely on the precise definition of IEEE
  592.           floating point.  Use `-ffloat-store' for such programs.
  593.  
  594.     `-fno-asm'
  595.           Do not recognize `asm', `inline' or `typeof' as a keyword. 
  596.           These words may then be used as identifiers.  You can use
  597.           `__asm__', `__inline__' and `__typeof__' instead.
  598.  
  599.     `-fno-defer-pop'
  600.           Always pop the arguments to each function call as soon as
  601.           that function returns.  Normally the compiler (when
  602.           optimizing) lets arguments accumulate on the stack for
  603.           several function calls and pops them all at once.
  604.  
  605.     `-fstrength-reduce'
  606.           Perform the optimizations of loop strength reduction and
  607.           elimination of iteration variables.
  608.  
  609.     `-fcombine-regs'
  610.           Allow the combine pass to combine an instruction that
  611.           copies one register into another.  This might or might not
  612.           produce better code when used in addition to `-O'.  I am
  613.           interested in hearing about the difference this makes.
  614.  
  615.     `-fforce-mem'
  616.           Force memory operands to be copied into registers before
  617.           doing arithmetic on them.  This may produce better code by
  618.           making all memory references potential common
  619.           subexpressions.  When they are not common subexpressions,
  620.           instruction combination should eliminate the separate
  621.           register-load.  I am interested in hearing about the
  622.           difference this makes.
  623.  
  624.     `-fforce-addr'
  625.           Force memory address constants to be copied into registers
  626.           before doing arithmetic on them.  This may produce better
  627.           code just as `-fforce-mem' may.  I am interested in hearing
  628.           about the difference this makes.
  629.  
  630.     `-fomit-frame-pointer'
  631.           Don't keep the frame pointer in a register for functions
  632.           that don't need one.  This avoids the instructions to save,
  633.           set up and restore frame pointers; it also makes an extra
  634.           register available in many functions.  *It also makes
  635.           debugging impossible.*
  636.  
  637.           On some machines, such as the Vax, this flag has no effect,
  638.           because the standard calling sequence automatically handles
  639.           the frame pointer and nothing is saved by pretending it
  640.           doesn't exist.  The machine-description macro
  641.           `FRAME_POINTER_REQUIRED' controls whether a target machine
  642.           supports this flag.  *Note Registers::.
  643.  
  644.     `-finline-functions'
  645.           Integrate all simple functions into their callers.  The
  646.           compiler heuristically decides which functions are simple
  647.           enough to be worth integrating in this way.
  648.  
  649.           If all calls to a given function are integrated, and the
  650.           function is declared `static', then the function is
  651.           normally not output as assembler code in its own right.
  652.  
  653.     `-fcaller-saves'
  654.           Enable values to be allocated in registers that will be
  655.           clobbered by function calls, by emitting extra instructions
  656.           to save and restore the registers around such calls.  Such
  657.           allocation is done only when it seems to result in better
  658.           code than would otherwise be produced.
  659.  
  660.           This option is enabled by default on certain machines,
  661.           usually those which have no call-preserved registers to use
  662.           instead.
  663.  
  664.     `-fkeep-inline-functions'
  665.           Even if all calls to a given function are integrated, and
  666.           the function is declared `static', nevertheless output a
  667.           separate run-time callable version of the function.
  668.  
  669.     `-fwritable-strings'
  670.           Store string constants in the writable data segment and
  671.           don't uniquize them.  This is for compatibility with old
  672.           programs which assume they can write into string constants.
  673.           `-traditional' also has this effect.
  674.  
  675.           Writing into string constants is a very bad idea;
  676.           ``constants'' should be constant.
  677.  
  678.     `-fcond-mismatch'
  679.           Allow conditional expressions with mismatched types in the
  680.           second and third arguments.  The value of such an
  681.           expression is void.
  682.  
  683.     `-fno-function-cse'
  684.           Do not put function addresses in registers; make each
  685.           instruction that calls a constant function contain the
  686.           function's address explicitly.
  687.  
  688.           This option results in less efficient code, but some
  689.           strange hacks that alter the assembler output may be
  690.           confused by the optimizations performed when this option is
  691.           not used.
  692.  
  693.     `-fvolatile'
  694.           Consider all memory references through pointers to be
  695.           volatile.
  696.  
  697.     `-fshared-data'
  698.           Requests that the data and non-`const' variables of this
  699.           compilation be shared data rather than private data.  The
  700.           distinction makes sense only on certain operating systems,
  701.           where shared data is shared between processes running the
  702.           same program, while private data exists in one copy per
  703.           process.
  704.  
  705.     `-funsigned-char'
  706.           Let the type `char' be the unsigned, like `unsigned char'.
  707.  
  708.           Each kind of machine has a default for what `char' should
  709.           be.  It is either like `unsigned char' by default or like
  710.           `signed char' by default.  (Actually, at present, the
  711.           default is always signed.)
  712.  
  713.           The type `char' is always a distinct type from either
  714.           `signed char' or `unsigned char', even though its behavior
  715.           is always just like one of those two.
  716.  
  717.           Note that this is equivalent to `-fno-signed-char', which
  718.           is the negative form of `-fsigned-char'.
  719.  
  720.     `-fsigned-char'
  721.           Let the type `char' be signed, like `signed char'.
  722.  
  723.           Note that this is equivalent to `-fno-unsigned-char', which
  724.           is the negative form of `-funsigned-char'.
  725.  
  726.     `-fdelayed-branch'
  727.           If supported for the target machine, attempt to reorder
  728.           instructions to exploit instruction slots available after
  729.           delayed branch instructions.
  730.  
  731.     `-ffixed-REG'
  732.           Treat the register named REG as a fixed register; generated
  733.           code should never refer to it (except perhaps as a stack
  734.           pointer, frame pointer or in some other fixed role).
  735.  
  736.           REG must be the name of a register.  The register names
  737.           accepted are machine-specific and are defined in the
  738.           `REGISTER_NAMES' macro in the machine description macro file.
  739.  
  740.           This flag does not have a negative form, because it
  741.           specifies a three-way choice.
  742.  
  743.     `-fcall-used-REG'
  744.           Treat the register named REG as an allocatable register
  745.           that is clobbered by function calls.  It may be allocated
  746.           for temporaries or variables that do not live across a call.
  747.           Functions compiled this way will not save and restore the
  748.           register REG.
  749.  
  750.           Use of this flag for a register that has a fixed pervasive
  751.           role in the machine's execution model, such as the stack
  752.           pointer or frame pointer, will produce disastrous results.
  753.  
  754.           This flag does not have a negative form, because it
  755.           specifies a three-way choice.
  756.  
  757.     `-fcall-saved-REG'
  758.           Treat the register named REG as an allocatable register
  759.           saved by functions.  It may be allocated even for
  760.           temporaries or variables that live across a call. 
  761.           Functions compiled this way will save and restore the
  762.           register REG if they use it.
  763.  
  764.           Use of this flag for a register that has a fixed pervasive
  765.           role in the machine's execution model, such as the stack
  766.           pointer or frame pointer, will produce disastrous results.
  767.  
  768.           A different sort of disaster will result from the use of
  769.           this flag for a register in which function values may be
  770.           returned.
  771.  
  772.           This flag does not have a negative form, because it
  773.           specifies a three-way choice.
  774.  
  775. `-dLETTERS'
  776.      Says to make debugging dumps at times specified by LETTERS. 
  777.      Here are the possible letters:
  778.  
  779.     `r'
  780.           Dump after RTL generation.
  781.  
  782.     `j'
  783.           Dump after first jump optimization.
  784.  
  785.     `s'
  786.           Dump after CSE (including the jump optimization that
  787.           sometimes follows CSE).
  788.  
  789.     `L'
  790.           Dump after loop optimization.
  791.  
  792.     `f'
  793.           Dump after flow analysis.
  794.  
  795.     `c'
  796.           Dump after instruction combination.
  797.  
  798.     `l'
  799.           Dump after local register allocation.
  800.  
  801.     `g'
  802.           Dump after global register allocation.
  803.  
  804.     `d'
  805.           Dump after delayed branch scheduling.
  806.  
  807.     `J'
  808.           Dump after last jump optimization.
  809.  
  810.     `m'
  811.           Print statistics on memory usage, at the end of the run.
  812.  
  813. `-pedantic'
  814.      Issue all the warnings demanded by strict ANSI standard C;
  815.      reject all programs that use forbidden extensions.
  816.  
  817.      Valid ANSI standard C programs should compile properly with or
  818.      without this option (though a rare few will require `-ansi'). 
  819.      However, without this option, certain GNU extensions and
  820.      traditional C features are supported as well.  With this option,
  821.      they are rejected.  There is no reason to use this option; it
  822.      exists only to satisfy pedants.
  823.  
  824.      `-pedantic' does not cause warning messages for use of the
  825.      alternate keywords whose names begin and end with `__'.  *Note
  826.      Alternate Keywords::.
  827.  
  828. `-static'
  829.      On Suns running version 4, this prevents linking with the shared
  830.      libraries.  (`-g' has the same effect.)
  831.  
  832. These options control the C preprocessor, which is run on each C
  833. source file before actual compilation.  If you use the `-E' option,
  834. nothing is done except C preprocessing.  Some of these options make
  835. sense only together with `-E' because they request preprocessor
  836. output that is not suitable for actual compilation.
  837.  
  838. `-C'
  839.      Tell the preprocessor not to discard comments.  Used with the
  840.      `-E' option.
  841.  
  842. `-IDIR'
  843.      Search directory DIR for include files.
  844.  
  845. `-I-'
  846.      Any directories specified with `-I' options before the `-I-'
  847.      option are searched only for the case of `#include "FILE"'; they
  848.      are not searched for `#include <FILE>'.
  849.  
  850.      If additional directories are specified with `-I' options after
  851.      the `-I-', these directories are searched for all `#include'
  852.      directives.  (Ordinarily *all* `-I' directories are used this
  853.      way.)
  854.  
  855.      In addition, the `-I-' option inhibits the use of the current
  856.      directory (where the current input file came from) as the first
  857.      search directory for `#include "FILE"'.  There is no way to
  858.      override this effect of `-I-'.  With `-I.' you can specify
  859.      searching the directory which was current when the compiler was
  860.      invoked.  That is not exactly the same as what the preprocessor
  861.      does by default, but it is often satisfactory.
  862.  
  863.      `-I-' does not inhibit the use of the standard system
  864.      directories for header files.  Thus, `-I-' and `-nostdinc' are
  865.      independent.
  866.  
  867. `-i FILE'
  868.      Process FILE as input, discarding the resulting output, before
  869.      processing the regular input file.  Because the output generated
  870.      from FILE is discarded, the only effect of `-i FILE' is to make
  871.      the macros defined in FILE available for use in the main input.
  872.  
  873. `-nostdinc'
  874.      Do not search the standard system directories for header files. 
  875.      Only the directories you have specified with `-I' options (and
  876.      the current directory, if appropriate) are searched.
  877.  
  878.      Between `-nostdinc' and `-I-', you can eliminate all directories
  879.      from the search path except those you specify.
  880.  
  881. `-M'
  882.      Tell the preprocessor to output a rule suitable for `make'
  883.      describing the dependencies of each source file.  For each
  884.      source file, the preprocessor outputs one `make'-rule whose
  885.      target is the object file name for that source file and whose
  886.      dependencies are all the files `#include'd in it.  This rule may
  887.      be a single line or may be continued with `\'-newline if it is
  888.      long.
  889.  
  890.      `-M' implies `-E'.
  891.  
  892. `-MM'
  893.      Like `-M' but the output mentions only the user-header files
  894.      included with `#include "FILE"'.  System header files included
  895.      with `#include <FILE>' are omitted.
  896.  
  897.      `-MM' implies `-E'.
  898.  
  899. `-DMACRO'
  900.      Define macro MACRO with the  string `1' as its definition.
  901.  
  902. `-DMACRO=DEFN'
  903.      Define macro MACRO as DEFN.
  904.  
  905. `-UMACRO'
  906.      Undefine macro MACRO.
  907.  
  908. `-trigraphs'
  909.      Support ANSI C trigraphs.  You don't want to know about this
  910.      brain-damage.  The `-ansi' option also has this effect.
  911.  
  912.  
  913.